package com.ruoyi.hanyun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hanyun.mapper.HyTaskDependenciesMapper;
import com.ruoyi.hanyun.domain.HyTaskDependencies;
import com.ruoyi.hanyun.service.IHyTaskDependenciesService;

/**
 * 任务依赖关系Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-27
 */
@Service
public class HyTaskDependenciesServiceImpl implements IHyTaskDependenciesService 
{
    @Autowired
    private HyTaskDependenciesMapper hyTaskDependenciesMapper;

    /**
     * 查询任务依赖关系
     * 
     * @param id 任务依赖关系主键
     * @return 任务依赖关系
     */
    @Override
    public HyTaskDependencies selectHyTaskDependenciesById(Long id)
    {
        return hyTaskDependenciesMapper.selectHyTaskDependenciesById(id);
    }

    /**
     * 查询任务依赖关系列表
     * 
     * @param hyTaskDependencies 任务依赖关系
     * @return 任务依赖关系
     */
    @Override
    public List<HyTaskDependencies> selectHyTaskDependenciesList(HyTaskDependencies hyTaskDependencies)
    {
        return hyTaskDependenciesMapper.selectHyTaskDependenciesList(hyTaskDependencies);
    }

    /**
     * 新增任务依赖关系
     * 
     * @param hyTaskDependencies 任务依赖关系
     * @return 结果
     */
    @Override
    public int insertHyTaskDependencies(HyTaskDependencies hyTaskDependencies)
    {
        return hyTaskDependenciesMapper.insertHyTaskDependencies(hyTaskDependencies);
    }

    /**
     * 修改任务依赖关系
     * 
     * @param hyTaskDependencies 任务依赖关系
     * @return 结果
     */
    @Override
    public int updateHyTaskDependencies(HyTaskDependencies hyTaskDependencies)
    {
        return hyTaskDependenciesMapper.updateHyTaskDependencies(hyTaskDependencies);
    }

    /**
     * 批量删除任务依赖关系
     * 
     * @param ids 需要删除的任务依赖关系主键
     * @return 结果
     */
    @Override
    public int deleteHyTaskDependenciesByIds(Long[] ids)
    {
        return hyTaskDependenciesMapper.deleteHyTaskDependenciesByIds(ids);
    }

    /**
     * 删除任务依赖关系信息
     * 
     * @param id 任务依赖关系主键
     * @return 结果
     */
    @Override
    public int deleteHyTaskDependenciesById(Long id)
    {
        return hyTaskDependenciesMapper.deleteHyTaskDependenciesById(id);
    }
}
